﻿@model List<PessMvc.Models.ExpertJudgeModel>

@{
    var grid = new WebGrid(Model);
}
<style type="text/css">
    /*table {
        table-layout: fixed;
    }*/
     .col1 {
        width: 50px !important;
    }
    .col2 {width:100px !important;}
    .col3 {
        width: 250px !important;
        text-align: left;
    }
    .col4 {width:150px;text-align:right !important;}
    .col4 {width:60px !important;}
    .col5 {width:150px !important;}
    .col6 {width:80px;}
    .col7 {width:80px;}
    .col8 {
        width: 50px !important;
            }
    /*td{overflow:hidden}*/
</style>

@grid.GetHtml(columns: grid.Columns(
grid.Column("SerialNumber", header: "Reviewer ID", style: "col1"),
    grid.Column("RealName", header: "Name", style: "col2"),
    //grid.Column("Email", header: "Email"),
grid.Column("SerialNumber",header:"Email", format: @<text>@Membership.GetUser(item.SerialNumber).Email</text>, style: "col3"),
        //grid.Column("Gender", header: "Gender", style:"col3", format: @<text>@Utility.TranslateGender(item.Gender)</text>),
        //grid.Column("Birthdate", header: "Date of Birth", style:"col4"),
//grid.Column("Phone", header: "Phone"),
grid.Column("ExpertGroupCallsign", header: "Review Group", style: "col1"),
//grid.Column("ExpertGroupID", header: "ID"),
        grid.Column(format: (item) => Html.ActionLink("Edit", "Edit", "ExpertJudge", new { SerialNumber = item.SerialNumber, returnUrl = HttpContext.Current.Request.RawUrl, activityID = ViewBag.ActivityID }, null), style: "col8"),
grid.Column(format: (item) => Html.ActionLink("Delete", "Delete", "ExpertJudge", new { SerialNumber = item.SerialNumber, returnUrl = HttpContext.Current.Request.RawUrl }, null), style:"col8")
))